package com.study.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.messaging.Message;

/**
 * @author csc
 * @version 1.0.0
 * @create 2024/12/27 11:06
 * @Descriotion: 类的作用
 */
public class MqttMsgEvent extends ApplicationEvent {

    private Message<String> message;

    public MqttMsgEvent(Object source, Message<String> message) {
        super(source);
        this.message = message;
    }

    public Message<String> getMessage() {
        return message;
    }
}
